package com.ruoyi.app.service;

import com.ruoyi.app.domain.AppPackage;
import com.ruoyi.app.domain.vo.AppPackageVo;
import com.ruoyi.app.domain.bo.AppPackageBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.math.BigDecimal;
import java.util.Collection;
import java.util.List;

/**
 * APP套餐Service接口
 *
 * @author ruoyi
 * @date 2025-06-21
 */
public interface IAppPackageService {

    /**
     * 查询APP套餐
     */
    AppPackageVo queryById(Long packageId);

    /**
     * 查询APP套餐列表
     */
    TableDataInfo<AppPackageVo> queryPageList(AppPackageBo bo, PageQuery pageQuery);

    /**
     * 查询APP套餐列表
     */
    List<AppPackageVo> queryList(AppPackageBo bo);

    /**
     * 新增APP套餐
     */
    Boolean insertByBo(AppPackageBo bo);

    /**
     * 修改APP套餐
     */
    Boolean updateByBo(AppPackageBo bo);

    /**
     * 校验并批量删除APP套餐信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    AppPackage selByPrice(BigDecimal amount);
}
